package com.wwj.springboot.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "cmfz_guru")
public class CmfzGuru implements Serializable {
    public static final String COL_GURU_ID = "guru_id";
    public static final String COL_GURU_NAME = "guru_name";
    public static final String COL_GURU_IMAGE = "guru_image";
    public static final String COL_GURU_NICKNAME = "guru_nickname";
    public static final String COL_GURU_STATUS = "guru_status";
    @TableId(value = "guru_id", type = IdType.AUTO)
    @Excel(name = "上师编号")
    private Integer guruId;
    @TableField(value = "guru_name")
    @Excel(name = "上师名字")
    private String guruName;
    @TableField(value = "guru_image")
    @Excel(name = "上师图片" ,imageType= 1 ,type = 2 ,width =  30,height = 30,
            savePath = "E:/IDEA/Idea_Work/myFile/"
    )
    private String guruImage;
    @TableField(value = "guru_nickname")
    @Excel(name = "上师法号")
    private String guruNickname;
    /**
     * 1冻结 冻结的同时需要下架相关的专辑和文章
     */
    @TableField(value = "guru_status")
    @Excel(name = "下架相关的专辑和文章" ,replace = {"正常_0","冻结_1"})
    private Integer guruStatus;

    public CmfzGuru() {
    }

    public CmfzGuru(Integer guruId, String guruName, String guruImage, String guruNickname, Integer guruStatus) {
        this.guruId = guruId;
        this.guruName = guruName;
        this.guruImage = guruImage;
        this.guruNickname = guruNickname;
        this.guruStatus = guruStatus;
    }
}